package cn.kgc.mybatis.dao;

import cn.kgc.mybatis.entity.User;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/4/22
 * @description
 *
 *   service
 *     private  UserDao userDao = new UserDaoImpl
 *     int line =  userDao.deleteUser
 *
 */
public interface UserDao {

    Integer addUser(User user);

    Integer deleteUser(Integer id);

    Integer updateUser(User user);

    List<User> selectUsers();

    User selectOne(Integer id);

}
